<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>医院维护</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;
            }
        input{
            height: 21px;
        }
    </style>
    <script type="text/javascript" src="../../js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../../js/04/yeshu1.js"></script>
    <script type="text/javascript" src="../../js/04/sasdasd1.js"></script>
    <script type="text/javascript" src="../../js/04/hospital.js"></script>
    <script type="text/javascript" src="../../js/04/hospitalxiaoyan.js"></script>

    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript">
        $(function () {
            serch_bean();
            gets();
        })
    </script>
</head>
<body>
<h1 align="center">医院信息</h1>
<form id="asdasd">
    <div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">

        <tr>
            <td>医院名称：</td>
            <td><input id="hName" name="hName" type="text" value=""></td>
            <td></td>
            <td>邮政编码：</td>
            <td><input id="hPostalcode" name="hPostalcode"  type="text" value="" onblur="aaa()"></td>
            <td></td>
        </tr>
        <tr>
            <td>医院级别：</td>
            <td><input id="hGrade" name="hGrade"  type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>是否营利机构:</td>
            <td>
                <select id="hProfit" name="hProfit" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="1">盈利机构</option>
                    <option value="0">非盈利机构</option>
                </select>
            </td>
            <td></td>
            <td>医院类型:</td>
            <td>
                <select id="hHcategory" name="hHcategory" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="0">私立</option>
                    <option value="1">公立</option>
                </select>
            </td>
            <td></td>
        </tr>
    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="soso"><a href="javascript:void(0)" onclick="serch_bean1()">查询</a></button>
    </td>
    <br>
</div>
</form>
<iframe id="iframe" name="rfFrame" src="about:blank" style="display:none;"></iframe>
<div>
    <table>
        <tr>
            <td>医院id</td>
            <td>医院名称</td>
            <td>通讯地址</td>
            <td>邮政编码</td>
            <td>所属地区</td>
            <td>医院级别</td>
            <td>床位数</td>
            <td>是否非营利性医疗机构</td>
            <td>院办电话</td>
            <td>院办传真</td>
            <td>药剂科电话</td>
            <td>医院类型</td>
            <td>上年度药品收入</td>
            <td>上年度业务收入</td>
            <td>操作</td>
        </tr>
        <tbody id="checkOne">
        </tbody>
    </table>
</div>
<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>
    <!-- 模态框（Modal） -->
    <!--添加医院-->
    <form id="search_form" >
        <!-- 存放主键的id的input  -->
        <input type="hidden" value="" class="hhhhhhhid">
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        </button>
                        <h4 class="modal-title" id="myModalLabel">
                            添加医院
                        </h4>
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院名称</label>
                        <input type="text" class="form-control" name="hName" onblur="bbb()" id="name1"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院地址</label>
                        <input type="text" class="form-control" name="hAddress"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院邮编</label>
                        <input type="text" class="form-control" name="hPostalcode" onblur="ccc()" id="hPostalcode1"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院地区</label>
                        <input type="text" class="form-control" name="hRegion"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院级别</label>
                        <input type="text" class="form-control" name="hGrade"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label>&nbsp&nbsp&nbsp医院床位数</label>
                        <input type="text" class="form-control" name="hBednum"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp是否营利机构(1是,0否)</label>
                        <input type="text" class="form-control" name="hProfit"
                               placeholder="请输入">

                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp院办电话</label>
                        <input type="text" class="form-control" name="hOffphone" id="tel" onblur="ddd()"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp院办传真</label>
                        <input type="text" class="form-control" name="hOfffax"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院药剂科电话</label>
                        <input type="text" class="form-control" name="hPdphone" id="tel1" onblur="eee()"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院类型(1公立,0私立)</label>
                        <input type="text" class="form-control" name="hHcategory"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp上年度药品收入</label>
                        <input type="text" class="form-control" name="hDrugRly"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp上年度业务收入</label>
                        <input type="text" class="form-control" name="hBusinessLy"
                               placeholder="请输入">
                    </div>


                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">
                            关闭
                        </button>
                        <button type="button" class="btn btn-primary" onclick="lahospital()">
                            添加
                        </button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </form><!-- /.modal -->
    <script>
        $(function () { $('#myModal').modal('hide')});
    </script>
    <script>
        $(function () { $('#myModal').on('hide.bs.modal', function () {
            ;})
        });
        //修改前的查看
    </script>

    <!--修改医院-->
    <form id="search_form1">
        <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        </button>
                        <h4 class="modal-title" id="myModalLabe2">
                            修改医院
                        </h4>
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院名称</label>
                        <input type="hidden" name="hId" id="hId" class="hh hhhhhhid">
                        <input type="text" class="form-control" name="hName" id="name" onblur="qqq()"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院地址</label>
                        <input type="text" class="form-control" name="hAddress" id="address"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院邮编</label>
                        <input type="text" class="form-control"  name="hPostalcode" id="postalcode" onblur="www()"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院地区</label>
                        <input type="text" class="form-control" name="hRegion" id="region"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院级别</label>
                        <input type="text" class="form-control"  name="hGrade" id="grade"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院床位数</label>
                        <input type="text" class="form-control" name="hBednum" id="bednum"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp是否营利机构(1是,0否)</label>
                        <input type="text" class="form-control" name="hProfit" id="profit"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp院办电话</label>
                        <input type="text" class="form-control"  name="hOffphone" id="offphone" onblur="rrr()"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp院办传真</label>
                        <input type="text" class="form-control" name="hOfffax" id="offfax"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院药剂科电话</label>
                        <input type="text" class="form-control" name="hPdphone" id="pdphone"  onblur="ttt()"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp医院类型(1公立,0私立)</label>
                        <input type="text" class="form-control" name="hHcategory" id="hcategory"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp上年度药品收入</label>
                        <input type="text" class="form-control" name="hDrugRly" id="drug_rly"
                               placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label >&nbsp&nbsp&nbsp上年度业务收入</label>
                        <input type="text" class="form-control" name="hBusinessLy" id="business_ly"
                               placeholder="请输入">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">
                            关闭
                        </button>
                        <button type="button" class="btn btn-primary" onclick="xiugai()">
                            修改
                        </button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
    </form>

    <script>
        $(function () { $('#myModal').modal('hide')});
    </script>
    <script>
        $(function () { $('#myModal').on('hide.bs.modal', function () {
        })
        });
    </script>
</body>
</html>
